package com.testDemo.enrty;

/**
 * 返回的实体类
 * 
 * @author wangmc
 */
public class TestDemoResult {

    public final static String ERROR_CODE = "9999";
    public final static String SUCCESS_CODE = "0000";

    private String status; // 状态码
    private String detail; // 描述
    private Object data; // 数据

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static String getErrorCode() {
        return ERROR_CODE;
    }

    public static String getSuccessCode() {
        return SUCCESS_CODE;
    }

    public TestDemoResult(String status, String detail, Object data) {
        super();
        this.status = status;
        this.detail = detail;
        this.data = data;
    }

    public TestDemoResult() {

    }

    @Override
    public String toString() {
        return "TestDemoResult [status=" + status + ", detail=" + detail + ", data=" + data + "]";
    }

}
